package edu.algo3.algoThief.vista;

import edu.algo3.algoThief.util.Constants;

@SuppressWarnings("serial")
public class VentanaAeropuerto extends javax.swing.JFrame{

	
	// Variables declaration - do not modify
    private VentanaCiudadActual ventanaCiudadActual;
    private javax.swing.JButton botonAtras;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JLabel labelAeropuertoTitulo;
    private javax.swing.JTextPane textAreaPistaTestigoAeropuerto;
    // End of variables declaration   
	
    
    private void botonAtrasActionPerformed(java.awt.event.ActionEvent evt) {                                           
        this.setVisible(Boolean.FALSE);
        this.ventanaCiudadActual.actualizarHoraActual();
    }   
    
    
    public VentanaAeropuerto(VentanaCiudadActual ventanaCiudadActual,
                             String mensajePista) {
        initComponents();
	    this.textAreaPistaTestigoAeropuerto.setText(mensajePista);
        this.ventanaCiudadActual = ventanaCiudadActual;
    }

    
    private void initComponents() {

        botonAtras = new javax.swing.JButton();
        labelAeropuertoTitulo = new javax.swing.JLabel();
        jLabel1 = new javax.swing.JLabel();
        jScrollPane1 = new javax.swing.JScrollPane();
        textAreaPistaTestigoAeropuerto = new javax.swing.JTextPane();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        botonAtras.setBackground(new java.awt.Color(139, 27, 27));
        botonAtras.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        botonAtras.setForeground(new java.awt.Color(255, 255, 255));
        botonAtras.setText(Constants.SALIR_DE_AEROPUERTO);
        botonAtras.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botonAtrasActionPerformed(evt);
            }
        });

        labelAeropuertoTitulo.setFont(new java.awt.Font("Stencil", 0, 18)); // NOI18N
        labelAeropuertoTitulo.setText(Constants.DESCRIPCION_EIDIFICIO_AEROPUERTO);

        jLabel1.setText("Testigo dice:");

        jScrollPane1.setViewportView(textAreaPistaTestigoAeropuerto);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane1)
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(labelAeropuertoTitulo)
                            .addComponent(jLabel1))
                        .addGap(0, 265, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addGap(0, 0, Short.MAX_VALUE)
                        .addComponent(botonAtras)))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(labelAeropuertoTitulo, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jLabel1)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(botonAtras)
                .addContainerGap(45, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>                        

                                           

    
    
}
